package com.dhcc.bpm.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.system.entity.DataTable;
import com.dhcc.bpm.modules.system.entity.DataTableColumn;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName DeptMapper
 * @Description Mapper 接口
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface DataDictMapper extends BaseMapper<DataTable> {


	String getUserName();
	/**
	 * @param page
	 * @param dataTable
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.system.entity.DataTable>
	 * @throws
	 * @Description 分頁查詢數據庫表信息
	 * @Author xiafayu
	 * @Date 2021/3/26 16:24
	 **/
	List<DataTable> selectDataTablePage(IPage<DataTable> page, DataTable dataTable);

	/**
	 * @param tableName
	 * @return com.dhcc.bpm.modules.system.entity.DataTableColumn
	 * @throws
	 * @Description 根据表名查询表结构信息
	 * @Author xiafayu
	 * @Date 2021/3/26 16:25
	 **/
	List<DataTableColumn> selectDataTableColumnByTableName(IPage<DataTableColumn> page, @Param("tableName") String tableName, @Param("owner") String owner);
}
